﻿<j:ebuttons
  [searchPlaceholder]="'BasicArchives::UI:SimplyList.JButtons.SearchPlaceholder' | abpLocalization"
  [editState]="editState"
  [submitBtnVisible]="false"
  [backBtnVisible]="false"
  [approveBtnVisible]="false"
  [unapproveBtnVisible]="false"
  [approveDividerVisible]="false"
  [selectBtnVisible]="false"
  [listBtnVisible]="false"
  [searchDividerVisible]="false"
  (saveBtnClick)="save()"
  (giveupBtnClick)="giveup()"
  (newBtnClick)="new()"
  (copyBtnClick)="copy()"
  (deleteBtnClick)="delete()"
  (refreshBtnClick)="refresh()"
  (searchBtnClick)="search($event)"
>
</j:ebuttons>

<nz-card class="main-card">
  <form nz-form [formGroup]="validateForm">
    <nz-tabset nzType="card">
      <nz-tab [nzTitle]="'BasicArchives::UI:SimplyEntityUI.CardTitle.Base' | abpLocalization">
        <div nz-row>
          <div nz-col [nzSpan]="8">
            <nz-form-item>
              <nz-form-label [nzSm]="8" [nzXs]="24" nzRequired nzFor="code">
                <a nz-button nzType="link" class="ref-form-label" (click)="uniqueCodeSetting()">
                  {%{{{}%} '{{project_group_name}}::ModelTitle:{{namespace}}.{{class_name}}.Code' | abpLocalization {%{}}}%}
                </a>
              </nz-form-label>
              <nz-form-control [nzSm]="14" [nzXs]="24">
                <input
                  nz-input
                  id="code"
                  formControlName="code"
                  [placeholder]="'{{project_group_name}}::ModelPlaceHolder:{{namespace}}.{{class_name}}.Code' | abpLocalization"
                  [readonly]="codeInputDisabled"
                  [ngClass]="{ 'input-disabled': codeInputDisabled }"
                />
              </nz-form-control>
            </nz-form-item>
          </div>
          <div nz-col [nzSpan]="8"></div>
          <div nz-col [nzSpan]="8"></div>
          {{~ for property in exclude_propertys(self_value_propertys, "TenantId") ~}}
          <div nz-col [nzSpan]="8">
            <nz-form-item>
              <nz-form-label [nzSm]="8" [nzXs]="24" nzRequired nzFor="{{to_camel_case(property.name)}}">
                {{~ if property.name == 'Code' ~}}
                <a nz-button nzType="link" class="ref-form-label" (click)="uniqueCodeSetting()">
                  {%{{{}%} '{{project_group_name}}::ModelTitle:{{namespace}}.{{class_name}}.{{property.name}}' | abpLocalization {%{}}}%}
                </a>
                {{~ else ~}}
                {%{{{}%} '{{project_group_name}}::ModelTitle:{{namespace}}.{{class_name}}.{{property.name}}' | abpLocalization {%{}}}%} 
                {{~ end ~}}
              </nz-form-label>
              <nz-form-control [nzSm]="14" [nzXs]="24">
                <input
                  nz-input
                  id="{{to_camel_case(property.name)}}"
                  formControlName="{{to_camel_case(property.name)}}"
                  [placeholder]="'{{project_group_name}}::ModelPlaceHolder:{{namespace}}.{{class_name}}.{{property.name}}' | abpLocalization"
                />
              </nz-form-control>
            </nz-form-item>
          </div>
          <div nz-col [nzSpan]="8"></div>
          <div nz-col [nzSpan]="8"></div>
          {{~ end ~}}
        </div>
      </nz-tab>
    </nz-tabset>
  </form>
</nz-card>